package checkers3d.presentation;

import java.awt.*;

/**
 * A interface for objects that observe mouse or keyboard events.
 *
 * @author      Ruben Acuna
 */
public interface IInputObserver
{
    /**
    * Handles a click within a visible area.
    *
    * @param  position  Point object containing the relative coordinates of the
    *                   click.
    */
    void onClick(Point position);

    /**
    * Handles a key press, when the window is in focus.
    *
    * @param  key       The character of the key that was pressed.
    * @see IInputObserver
    */
    void onKeyPress(char key);
}
